var AboutAssistant = Class.create({

	backgroundClassName: "background",

	setup: function() {

		//About
		this.controller.setupWidget(Mojo.Menu.appMenu, {
			omitDefaultItems: true
		}, {
			visible: true,
			items: [
      		Mojo.Menu.editItem,
			{ label: "Disclaimer", command: "do-disclaimer" },					
				{ label: "License", command: "do-license" },
				{ label: "Help", command: "do-help" }
			]
		});

		$("version").innerHTML = Mojo.Controller.appInfo.version;

		this.controller.listen("contact", Mojo.Event.tap, this.showUrl.bindAsEventListener(this, "mailto:palmdoc@gmail.com?subject=Feedback: MediPDA"));
		this.controller.listen("website", Mojo.Event.tap, this.showUrl.bindAsEventListener(this, "http://palmdoc.net/?page_id=2618"));
	},

	showUrl: function(event, url) {
		this.controller.serviceRequest('palm://com.palm.applicationManager', {
			method:'open',
			parameters:{
				target: url
			}
		});
	},

	deactivate: function() {
	}
});